﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="DefaultQuery.aspx.cs" Inherits="Salary_DefaultQuery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table align="center" style="width: 536px">
            <tr>
                <td style="width: 258px; height: 26px">
                    开始时间：<asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox></td>
                <td style="width: 5px; height: 26px">
                </td>
                <td style="width: 240px; height: 26px">
                    结束时间：<asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 258px; height: 21px">
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
                <td style="width: 5px; height: 21px">
                </td>
                <td style="width: 240px; height: 21px">
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="height: 20px">
                    <asp:Label ID="Label3" runat="server" Visible="False" Width="284px">对不起，没有找到您要的记录！</asp:Label></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                        GridLines="Vertical" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                        <FooterStyle BackColor="#CCCC99" />
                        <Columns>
                            <asp:BoundField HeaderText="发薪日期" DataField="SalaryTime" />
                            <asp:BoundField HeaderText="基本工资" DataField="BasicSalary" />
                            <asp:BoundField HeaderText="加班工资" DataField="OvertimeSalary" />
                            <asp:BoundField HeaderText="考勤扣除" DataField="AbsenceSalary" />
                            <asp:BoundField HeaderText="其它增减" DataField="OtherSalary" />
                            <asp:BoundField HeaderText="最终所得" DataField="ActualSalary" />
                            <asp:ButtonField Text="选定" CommandName="Select" HeaderText="选定" />
                        </Columns>
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3">
                    <asp:Button ID="btnPrint" runat="server" Text="打印工资单" Visible="False" OnClick="btnPrint_Click" /></td>
            </tr>
        </table>
    
    </div>
</asp:Content>